<?php
include("../connect/connect_dsccmis.php");
//วันที่ปัจจุบัน
$tempY=date("Y");
if($tempY<"2550"){
	$tempY=(int)$tempY+543;
}
$datetime_now= $tempY.date("-m-d-H:i");
echo "<br>Started at ".$datetime_now."<br>";	
//input = procedure dscc.createTempDSCCForMCC
include "create_mis_tempdsccformcc.php"; 
//output = mis_tempdsccformcc, dscc.tempeventcase

//input = dscc.viewevent
include "create_mis_viewevent.php";
//output = mis_viewevent

//input = dscc.viewlosofper
include "create_mis_viewlosofper.php";
//output = mis_viewlosofper

//input = mis_viewevent,dscc.evnrelevntyp,convert_evntyp,dscc.tempeventcase,codebook_plcnmegen,convert_latlngofsouthprov
include "create_gis_event.php";
//ปรับปรุง lat lng จาก utm ของทหารที่บันทึกมาcall create_gis_event_utm2latlng2.php
include "create_gis_event_utm2latlng.php";
 // ปรับปรุง lat lng จากพิกัดกลางหมู่บ้าน
//include "create_gis_event_latlngfromvill.php";
//output = gis_event
/*
//input = mis_viewlosofper,
include "create_gis_victim.php";
//output = gis_event
include "create_mis_event_trend.php";
//output = mis_event_trend
include "create_mis_event_type.php";
//output = mis_event_type
include "create_mis_victim_trend.php";
//output = mis_numvictim_trend
include "create_mis_victim_losbody.php";
//output = mis_numvictim_losbody
include "append_mis_coverage.php";
//output = mis_numvictim_losbody*/
$datetime_now= $tempY.date("-m-d-H:i");
echo "<br><br>Finish at ".$datetime_now;	
?>
